#pragma once


//------------------------------------------------------------------------
//
//  Name:				CGESound.h
//
//  Desc:				A class deal with Sound
//
//  Author:				Crane Shen
//
//  CGE:				Crane's Game Engine
//
//  Create Time:		4/30 2010
//
// 
//------------------------------------------------------------------------


#include "SDL_mixer.h"
#include <string>
#include <map>
using std::string;
using std::map;
class CGESound
{
public:
	CGESound(void);
	virtual ~CGESound(void);
	
	void	LoadMusic(string filename,string name);
	void	LoadEffect(string filename,string name);

	void    PlayMusic(string name);
	void	PlayEffect(string name);

	void	StopMusic();

private:
	//The music that will be played
	Mix_Music *m_Music;

	map<string,Mix_Chunk*> m_MapEffects;
};
